var favorites = {};

favorites.delById = function(id){
	$('#ids_' + id).attr("checked", true);
	if(!favorites.delByIds()){
		$('#ids_' + id).attr("checked", false);
	}
}

favorites.delByIds = function(){
	if(confirm("是否确定删除")){
		var $pageForm = $('#pageForm');
		$pageForm.attr('action','delFavorites');
		$pageForm.submit();
	}else{
		return false;
	}
}